package com.le.tester.javaThink.fifth.chapter13_FuncProgramming;

import java.util.function.IntSupplier;

/**
 * createTime：2021/8/6 14:45
 * description：无法编译成功
 */
public class Closure7 {
    IntSupplier makeFun(int x) {
        Integer i = 0;
        i = i + 1;
        //可知这里的肯定就不是final了
        //return () -> x + i;
        return () -> 1;
    }
}
